/**
 * 
 */
package edu.gtcfla.km.admin.appmodules.vo;

import java.util.Date;

import org.vsg.biz.BusinessEntityFactory;
import org.vsg.biz.account.Role;
import org.vsg.common.web.jackson.JsonDateSerializer;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * @author Bill Vison
 *
 */
@JsonIgnoreProperties(value = {"entity"})
public class RoleFormVO implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8681202477446684987L;

	private Role role;

	private String createdUser;
	
	private String updatedUser;
	
	private String ownedUser;
	
	
	private static BusinessEntityFactory entityFactory = BusinessEntityFactory.getInstance();
	
	public RoleFormVO() {
		role = entityFactory.create(Role.class);
	}
	
	public RoleFormVO(Role sysRole) {
		this.role = sysRole;
	}

	public String getCode() {
		return role.getCode();
	}
	
	@JsonSerialize(using=JsonDateSerializer.class)	
	public Date getCreatedDate() {
		return role.getCreatedDate();
	}

	public short getFlagDeleted() {
		return role.getFlagDeleted();
	}

	public String getRole() {
		return role.getRole();
	}
	
	

	public void setRole(String role) {
		this.role.setRole(role);
	}

	public String getName() {
		return role.getName();
	}

	public void setCode(String newCode) {
		role.setCode(newCode);
	}


	public void setFlagDeleted(short newFlagDeleted) {
		role.setFlagDeleted(newFlagDeleted);
	}
	
	
	public Role getEntity() {
		return this.role;
	}



	public void setName(String newName) {
		role.setName(newName);
	}

	public void setId(String newId) {
		role.setId(newId);
	}

	public String getId() {
		return role.getId();
	}

	public void setCreatedDate(Date newCreatedDate) {
		role.setCreatedDate(newCreatedDate);
	}

	public void setDisabled(short newFlagInactive) {
		role.setDisabled(newFlagInactive);
	}

	public short getDisabled() {
		return role.getDisabled();
	}

	public String getCreatedUser() {
		return createdUser;
	}

	public void setCreatedUser(String createdUser) {
		this.createdUser = createdUser;
	}

	public String getUpdatedUser() {
		return updatedUser;
	}

	public void setUpdatedUser(String updatedUser) {
		this.updatedUser = updatedUser;
	}

	public String getOwnedUser() {
		return ownedUser;
	}

	public void setOwnedUser(String ownedUser) {
		this.ownedUser = ownedUser;
	}

	public String getRemark() {
		return role.getRemark();
	}
	
	@JsonSerialize(using=JsonDateSerializer.class)	
	public Date getUpdatedDate() {
		return role.getUpdatedDate();
	}

	public String getTreemap() {
		return role.getTreemap();
	}



	
	
}
